//
//  HTListRemoveSeparator.swift
//  MagaCore
//
//  Created by MrMessy on 2023/5/13.
//

import SwiftUI

struct HTListRemoveSeparator: ViewModifier {
  func body(content: Content) -> some View {
    content
      .onAppear(perform: {
        UITableView.appearance().tableFooterView = UIView()
        UITableView.appearance().separatorStyle = .none
      })
      .onDisappear(perform: {
        UITableView.appearance().tableFooterView = nil
        UITableView.appearance().separatorStyle = .singleLine
      })
  }
}
